<div class="layui-card">
    <div class="layui-card-body">
        <form class="layui-form" action="" method="post" id="cp-form">
            <div class="layui-tab layui-tab-brief">
                <ul class="layui-tab-title">
                    <li class="layui-this">微信商户</li>
                </ul>

                <div class="layui-tab-content">
                    <div class="layui-tab-item layui-show">

                        <div class="layui-form-item">
                            <label class="layui-form-label">公众号AppId</label>
                            <div class="layui-input-inline">
                                <input type="text" name="app_id" value="{$setting.app_id|default=''}" required lay-verify="required" placeholder="" autocomplete="off" class="layui-input">
                            </div>
                            <div class="layui-word-aux">微信支付对应公众账号APPID</div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">公众号密钥</label>
                            <div class="layui-input-inline">
                                <input type="text" name="app_secret" value="{$setting.app_secret|default=''}" required lay-verify="required" placeholder="" autocomplete="off" class="layui-input">
                            </div>
                            <div class="layui-word-aux">公众号 secret 密钥</div>
                        </div>

                        <div class="layui-form-item">
                            <label class="layui-form-label">商户mchId</label>
                            <div class="layui-input-inline">
                                <input type="text" name="mch_id" value="{$setting.mch_id|default=''}" required lay-verify="required" placeholder="" autocomplete="off" class="layui-input">
                            </div>
                            <div class="layui-word-aux">商户申请微信支付后，由微信支付分配的商户收款账号</div>
                        </div>

                        <div class="layui-form-item">
                            <label class="layui-form-label">商户密钥</label>
                            <div class="layui-input-inline">
                                <input type="text" name="mch_key" value="{$setting.mch_key|default=''}" required lay-verify="required" placeholder="" autocomplete="off" class="layui-input">
                            </div>
                        </div>

                        <div class="layui-form-item">
                            <label class="layui-form-label">商户证书</label>
                            <div class="layui-input-block">
                                <table class="layui-table" id="app-photos">
                                    <tr>
                                        <td>
                                            <input type="text" class="layui-input" name="mch_apikey_certificate" value="{$setting.mch_apikey_certificate|default=''}">
                                        </td>
                                        <td>
                                            <button type="button" class="layui-btn" id="test2">
                                                <i class="layui-icon">&#xe67c;</i>上传证书
                                            </button>
                                        </td>
                                    </tr>
                                </table>
                                <div class="layui-word-aux">微信商户API apiclient key pem证书</div>
                            </div>
                            <div class="layui-input-block">
                                <table class="layui-table" id="app-photoss">
                                    <tr>
                                        <td>
                                            <input type="text" class="layui-input" name="mch_apicert_certificate" value="{$setting.mch_apicert_certificate|default=''}">
                                        </td>
                                        <td>
                                            <button type="button" class="layui-btn" id="test3">
                                                <i class="layui-icon">&#xe67c;</i>上传证书
                                            </button>
                                        </td>
                                    </tr>
                                </table>
                                <div class="layui-word-aux">微信商户API apiclient cert pem证书</div>
                            </div>
                        </div>

                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label"></label>
                <div class="layui-input-inline">
                    <div class="layui-text">带 * 号的为必填项</div>
                    <button class="layui-btn" lay-submit lay-filter="*">保存</button>
                </div>

            </div>
        </form>
    </div>
</div>
